import { request } from "@/util/index";
export async function getCategory(): Promise<any> {
  return request("/recycle/listCatgeory");
}
export async function updateCategory(data: Object): Promise<any> {
  return request("/recycle/updateCategory", data);
}
export async function addCategory(data: Object): Promise<any> {
  return request("/recycle/addClassifications", data);
}
export async function showPrice(): Promise<any> {
  return request("/recycle/showCategory");
}
export async function addPrice(data: Object): Promise<any> {
  return request("/recycle/categoryPrice", data);
}
export async function updatePrice(data: Object): Promise<any> {
  return request("/recycle/updatePrice", data);
}
export async function getPrice(data: Object): Promise<any> {
  return request("/recycle/showPrice", data);
}
export async function listAddress(): Promise<any> {
  return request("/recycle/listAddress");
}
export async function addAddress(data: Object): Promise<any> {
  return request("/recycle/addAddress", data);
}
export async function updateAddress(data: Object): Promise<any> {
  return request("/recycle/updateAddress", data);
}
export async function listSchool(): Promise<any> {
  return request("/recycle/listSchool");
}
export async function listCampus(schoolId: string): Promise<any> {
  return request("/recycle/listCampus", {
    school: schoolId,
  });
}
export async function upOrder(data: Object): Promise<any> {
  return request("/recycle/placeAnOrder", data);
}
export async function showOrder(): Promise<any> {
  return request("/recycle/showsOrder");
}
export async function acceptOrder(id: string): Promise<any> {
  return request("/recycle/acceptOrder", { id });
}
export async function showMyOrder(): Promise<any> {
  return request("/recycle/showMyOrder");
}
export async function transferOrder(id: string): Promise<any> {
  return request("/recycle/transferOrder", { id });
}
export async function orderDetail(id: string): Promise<any> {
  return request("/recycle/orderDetail", { id });
}
export async function completeOrder(data: Object): Promise<any> {
  return request("/recycle/completedOrder", data);
}
export async function backOrder(data: Object): Promise<any> {
  return request("/recycle/backOrder", data);
}
export async function showHistoryOrder(): Promise<any> {
  return request("/recycle/showHistoryOrder");
}
